<div ng-controller="WifiCtrl" ng-init="indexAction()">
    <ul class="sui-breadcrumb">
        <li>{{'无线wifi'| translate}}</li>
        <li>{{'List'|translate}}
        </li>
        <li>
            <label class="control-label v-top"> {{'选择公众号'| translate}}：</label>
            <wx-app-list ng-model="gzh_appid" dft="1" ary="storeary" xc="1"> </wx-app-list> 
            <a ng-show="!gzh_appid" style="display: none;" href="#/store/list"> + 授权公众号 </a>
        </li>
        <span class="sui-form sui-form pull-right"> 
            
        </span>
    </ul>
    <table ng-show="shops.length>0" class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'ID'|translate}}</th>
                <th>{{'门店ID'|translate}}</th>
                <th>{{'门店'|translate}}</th>
                <th>{{'当前wifi'|translate}}</th>
                <th>{{'wifi列表'|translate}}</th>
                <th>{{'模式'|translate}}</th>
                <th>{{'操作'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in shops">
                <td>
                    {{list.poi_id}}
                </td>
                <td>
                    {{list.shop_id}}
                </td>
                <td>
                    {{list.shop_name}}
                </td>
                <td>
                    {{list.ssid}}
                </td>
                <td>
                    {{list.ssid_list}}
                </td>
                <td>
                    <span ng-show="!list.protocol_type">未添加</span>
                    <span ng-show="list.protocol_type==4">密码型</span>
                    <span ng-show="list.protocol_type==31">协议型</span>
                </td>
                <td>
                    <a class="sui-btn btn-primary" href="#/wifi/shop?gzh_appid={{gzh_appid}}&shop_id={{list.shop_id}}"> 设置 </a>
                    <button class="sui-btn btn-success" ng-click="wifiQrcode(list.ssid,list.shop_id)">wifi二维码</button>
                </td>
            </tr>
        </tbody>
    </table>
    <pager page-no="1" page-size="pageSize" total="detail_count" get-data="getDetailList(pageNo)"></pager>
    <div ng-show="shops.length==0" style="text-align: center;color: #ff0000;display: none;">
        <img src="https://img.alicdn.com/imgextra/i2/20841398/TB2R5epn3LD8KJjSszeXXaGRpXa-20841398.jpg" style="width: 64%;" /> <br>
        <p>如果没有门店，登录公众号微信后台，创建门店</p>
    </div>
</div>